package com.chenjun.core.service.oa.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.chenjun.common.bean.Pagination;
import com.chenjun.common.model.DataGridModel;
import com.chenjun.core.dao.generator.entity.OaDictNotStdManHoursCfg;
import com.chenjun.core.dao.generator.mapper.OaDictNotStdManHoursCfgMapper;
import com.chenjun.core.service.oa.OaDictNotStdManHoursCfgService;


@Service
@Transactional
@SuppressWarnings("serial")
public class OaDictNotStdManHoursCfgServicImpl implements OaDictNotStdManHoursCfgService {

	@Autowired 
	private OaDictNotStdManHoursCfgMapper oaDictNotStdManHoursCfgMapper;
	
	@Override
	public OaDictNotStdManHoursCfg get(int id) {
		return oaDictNotStdManHoursCfgMapper.selectByPrimaryKey(id);
	}

	@Override
	public int create(OaDictNotStdManHoursCfg oaDictNotStdManHoursCfg) {
		// TODO Auto-generated method stub
		return oaDictNotStdManHoursCfgMapper.insert(oaDictNotStdManHoursCfg);
	}

	@Override
	public int delete(String id) {
		// TODO Auto-generated method stub
		return oaDictNotStdManHoursCfgMapper.deleteByPrimaryKey(Integer.valueOf(id));
	}

	@Override
	public int update(OaDictNotStdManHoursCfg oaDictNotStdManHoursCfg) {
		// TODO Auto-generated method stub
		return oaDictNotStdManHoursCfgMapper.updateByPrimaryKey(oaDictNotStdManHoursCfg);
	}

	@Override
	public int createOrUpdate(OaDictNotStdManHoursCfg oaDictNotStdManHoursCfg) {
		return 0;
	}

	@Override
	public int editOaDictNotStdManHoursCfg(OaDictNotStdManHoursCfg oaDictNotStdManHoursCfg) {
		return 0;
	}

	@Override
	public int doCountByCondition(DataGridModel param) {
		return 0;
	}

	@Override
	public List<OaDictNotStdManHoursCfg> doListByCondition(DataGridModel param) {
//		return oaDictNotStdManHoursCfgMapper.selectByExample(param);
		return null;
	}

	@Override
	public Pagination doPagination(DataGridModel param) {
		// TODO Auto-generated method stub
		
		return null;
	}


}
